%{
#include <stdio.h>
/*#include "y.tab.h"*/
%}
%option noyywrap

%%
[0-9]+   { yylval.val = atoi(yytext); 
           return NUM;
         }

[0-9]+"."[0-9]*   { yylval.val = atof(yytext); 
                    return NUM;
                  }

[a-zA-Z][a-zA-Z0-9]*   { yylval.nom = malloc(strlen(yytext)+1); 
                         strcpy(yylval.nom,yytext); 
                         yylval.val=0; 
                         return ID;
                       }

" "   /* rien */

.     return *yytext;

%%

